﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace ElStationUI.ManagementServiceReference
{
    public partial class ManagementServiceClient : IDisposable
    {
        void IDisposable.Dispose()
        {
            try
            {
                this.Close();
            }
            catch (CommunicationException)
            {
                this.Abort();
            }
            catch (TimeoutException)
            {
                this.Abort();
            }
            catch (Exception)
            {
                this.Abort();
                throw;
            }
        }
    }
}
